package cn.zyjblogs.starter.mybatisplus.generator;

import cn.zyjblogs.starter.mybatisplus.utils.IdUtils;
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;

/**
 * @author zhuyijun
 */
public class GlobalIdGenerator implements IdentifierGenerator {

    @Override
    public Long nextId(Object entity) {
        return IdUtils.nextId(entity);
    }


    @Override
    public String nextUUID(Object entity) {
        return IdUtils.nextUUID(entity);
    }
}